package com.example.springbootdemo.service.impl;

import com.example.springbootdemo.mapper.MyLockMapper;
import com.example.springbootdemo.service.MyLockService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @description: some desc
 * @author: ruoan
 * @date: 2021/2/18 12:55
 */
@Service("myLockService")
public class MyLockServiceImpl implements MyLockService {
    @Resource
    private MyLockMapper myLockMapper;

    @Override
    public void addOneRecord() {
        myLockMapper.addOneRecord();
    }

    @Override
    public void removeOneRecord() {
        myLockMapper.removeOneRecord();
    }
}
